<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{{.title}}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="/static/layui/css/layui.css?t=1604588872225" media="all">
    <style>
        .later a {
            color: #f0f0f0;
        }
        .later a:hover,a:visited {
            color: #f0f0f0;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout" style="width: 80%;margin: auto;">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
        <legend>{{ .err }}</legend>
    </fieldset>
    <form class="layui-form" action="/categories/create" method="POST">
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" name="sort" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn">立即提交</button>

                <button type="submit" class="layui-btn later">
                    <a href="/categories">返回列表</a>
                </button>
            </div>
        </div>
    </form>
</div>
<script src="/static/layui/layui.js?t=1604588872225" charset="utf-8"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
</script>
</body>
</html>
